package com.ttx.pattern.example.command.after.command;

import com.ttx.pattern.example.command.after.receiver.Eraser;

/**
 * 擦除命令
 * @author TimFruit
 * @date 19-5-5 下午11:21
 */
public class EraseCommand implements Command {
    private Eraser eraser;

    public EraseCommand(Eraser eraser) {
        this.eraser = eraser;
    }

    @Override
    public void execute() {
        eraser.erase();
    }
}
